const { ccclass, property } = cc._decorator;

@ccclass
export default class AgreementPage extends cc.Component {
    @property
    AgreementPage = null;
    @property
    page_bg = null;
    @property
    titleBg = null;
    @property
    title = null;
    @property
    spr_in = null;
    @property
    abount_bg = null;
    @property
    panels = null;
    @property
    view = null;
    @property
    content = null;
    @property
    richtext_content = null;
    @property
    RICHTEXT_CHILD = null;
    @property
    label_rich_des = null;
    @property
    btn_dis = null;
    @property
    btn_agree = null;
    @property
    agree_des = null;

    onLoad() {
        this.AgreementPage = this.node;
        this.page_bg = this.AgreementPage.getChildByName("page_bg");
        this.titleBg = this.page_bg.getChildByName("titleBg");
        this.title = this.titleBg.getChildByName("title");
        this.spr_in = this.page_bg.getChildByName("spr_in");
        this.abount_bg = this.spr_in.getChildByName("abount_bg");
        this.panels = this.spr_in.getChildByName("panels");
        this.view = this.panels.getChildByName("view");
        this.content = this.view.getChildByName("content");
        this.richtext_content = this.content.getChildByName("richtext_content");
        this.RICHTEXT_CHILD = this.richtext_content.getChildByName("RICHTEXT_CHILD");
        this.label_rich_des = this.page_bg.getChildByName("label_rich_des");
        this.btn_dis = this.page_bg.getChildByName("btn_dis");
        // this.dis_agrees_des = this.btn_dis.getChildByName("dis_agrees_des");
        this.btn_agree = this.page_bg.getChildByName("btn_agree");
        this.agree_des = this.btn_agree.getChildByName("agree_des");
    }
}
